package cn.itsource.pethome.system.wxuser.service.impl;

import cn.itsource.pethome.system.wxuser.domain.Wxuser;
import cn.itsource.pethome.system.wxuser.mapper.WxuserMapper;
import cn.itsource.pethome.system.wxuser.service.IWxuserService;
import cn.itsource.pethome.base.service.impl.IBaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xlh
 * @since 2023-01-31
 */
@Service
public class WxuserServiceImpl extends IBaseServiceImpl<Wxuser> implements IWxuserService {
    @Autowired
    private WxuserMapper wxuserMapper;
    @Override
    public Wxuser findByUnionid(String unionid) {
        return wxuserMapper.findByUnionid(unionid);
    }

    @Override
    public Wxuser findByUserId(Long userId) {
        return wxuserMapper.findByUserId(userId);
    }
}
